ver = PC

ifeq ($(ver), ARM)
XX = /usr/local/arm/4.3.2/bin/arm-linux-g++
else
XX = g++
endif

TARGET = show
OBJECTS = screen.o main.o temperature.o fpga.o usage.o clock.o cronwork.o
show:$(OBJECTS)
	gcc -o $(TARGET) $(OBJECTS)
all:$(OBJECTS) 	
	$(OBJECTS):%.o:%.c
	gcc -c $(CFLAGS) $< -o $@
	chmod a+x $(TARGET)

.PHONY:clean
clean:
	rm -f $(TARGET) $(OBJECTS) *~ 

